<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center" valign="top">
       <?php if($sf_user->isAuthenticated() and $sf_user->hasCredential('roditelj'))
            {
               $ucenik = $uceniks[0]; echo link_to('<img src="/static/images/meni1.jpg" width="220" height="103" border="0" alt="dnevnik" />', 'home/dnevnik?ucenik_id='.$ucenik->getId(), array('target' => '_blank', 'onclick' => 'popup(this.href, "Školski dnevnik '.$ucenik->joinIme().'", 1024, 800); return false;'));

            }?>
    </td>
    <td align="center" valign="top">
      <?php echo link_to('<img src="/static/images/meni2.jpg" width="220" height="103" border="0" alt="placanje" />', 'home/placanje', array('target' => '_blank', 'onclick' => 'popup(this.href, "Plaćanje", 1024, 800); return false;')); ?>
    </td>
  </tr>
  <tr>
    <td align="center" valign="top">
      <?php echo link_to('<img src="/static/images/meni3.jpg" width="220" height="103" border="0" alt="podesavanja" />', 'home/settings'); ?>
    </td>
    <td align="center" valign="top">
      <a href="/home/kontakt/back/1"><img src="/static/images/meni4.jpg" width="220" height="103" border="0" /></a>
    </td>
  </tr>
  <tr>
    <td align="center" valign="top"><a href="pig.php">
      <?php echo link_to('<img src="/static/images/meni5.jpg" width="220" height="103" border="0" alt="predlozi greske" />', 'greske/greske'); ?>
    </td>
    <td align="center" valign="top"><a href="index.php">
      <?php echo link_to('<img src="/static/images/meni6.jpg" width="220" height="103" border="0" alt="logout" />', 'user/logout');?>
    </td>
  </tr>
</table>